package pe.com.empresa.datos.dominio;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class OrdenCompraExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public OrdenCompraExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andNumeroOrdenCompraIsNull() {
            addCriterion("numeroOrdenCompra is null");
            return (Criteria) this;
        }

        public Criteria andNumeroOrdenCompraIsNotNull() {
            addCriterion("numeroOrdenCompra is not null");
            return (Criteria) this;
        }

        public Criteria andNumeroOrdenCompraEqualTo(String value) {
            addCriterion("numeroOrdenCompra =", value, "numeroOrdenCompra");
            return (Criteria) this;
        }

        public Criteria andNumeroOrdenCompraNotEqualTo(String value) {
            addCriterion("numeroOrdenCompra <>", value, "numeroOrdenCompra");
            return (Criteria) this;
        }

        public Criteria andNumeroOrdenCompraGreaterThan(String value) {
            addCriterion("numeroOrdenCompra >", value, "numeroOrdenCompra");
            return (Criteria) this;
        }

        public Criteria andNumeroOrdenCompraGreaterThanOrEqualTo(String value) {
            addCriterion("numeroOrdenCompra >=", value, "numeroOrdenCompra");
            return (Criteria) this;
        }

        public Criteria andNumeroOrdenCompraLessThan(String value) {
            addCriterion("numeroOrdenCompra <", value, "numeroOrdenCompra");
            return (Criteria) this;
        }

        public Criteria andNumeroOrdenCompraLessThanOrEqualTo(String value) {
            addCriterion("numeroOrdenCompra <=", value, "numeroOrdenCompra");
            return (Criteria) this;
        }

        public Criteria andNumeroOrdenCompraLike(String value) {
            addCriterion("numeroOrdenCompra like", value, "numeroOrdenCompra");
            return (Criteria) this;
        }

        public Criteria andNumeroOrdenCompraNotLike(String value) {
            addCriterion("numeroOrdenCompra not like", value, "numeroOrdenCompra");
            return (Criteria) this;
        }

        public Criteria andNumeroOrdenCompraIn(List<String> values) {
            addCriterion("numeroOrdenCompra in", values, "numeroOrdenCompra");
            return (Criteria) this;
        }

        public Criteria andNumeroOrdenCompraNotIn(List<String> values) {
            addCriterion("numeroOrdenCompra not in", values, "numeroOrdenCompra");
            return (Criteria) this;
        }

        public Criteria andNumeroOrdenCompraBetween(String value1, String value2) {
            addCriterion("numeroOrdenCompra between", value1, value2, "numeroOrdenCompra");
            return (Criteria) this;
        }

        public Criteria andNumeroOrdenCompraNotBetween(String value1, String value2) {
            addCriterion("numeroOrdenCompra not between", value1, value2, "numeroOrdenCompra");
            return (Criteria) this;
        }

        public Criteria andIdProveedorIsNull() {
            addCriterion("idProveedor is null");
            return (Criteria) this;
        }

        public Criteria andIdProveedorIsNotNull() {
            addCriterion("idProveedor is not null");
            return (Criteria) this;
        }

        public Criteria andIdProveedorEqualTo(Integer value) {
            addCriterion("idProveedor =", value, "idProveedor");
            return (Criteria) this;
        }

        public Criteria andIdProveedorNotEqualTo(Integer value) {
            addCriterion("idProveedor <>", value, "idProveedor");
            return (Criteria) this;
        }

        public Criteria andIdProveedorGreaterThan(Integer value) {
            addCriterion("idProveedor >", value, "idProveedor");
            return (Criteria) this;
        }

        public Criteria andIdProveedorGreaterThanOrEqualTo(Integer value) {
            addCriterion("idProveedor >=", value, "idProveedor");
            return (Criteria) this;
        }

        public Criteria andIdProveedorLessThan(Integer value) {
            addCriterion("idProveedor <", value, "idProveedor");
            return (Criteria) this;
        }

        public Criteria andIdProveedorLessThanOrEqualTo(Integer value) {
            addCriterion("idProveedor <=", value, "idProveedor");
            return (Criteria) this;
        }

        public Criteria andIdProveedorIn(List<Integer> values) {
            addCriterion("idProveedor in", values, "idProveedor");
            return (Criteria) this;
        }

        public Criteria andIdProveedorNotIn(List<Integer> values) {
            addCriterion("idProveedor not in", values, "idProveedor");
            return (Criteria) this;
        }

        public Criteria andIdProveedorBetween(Integer value1, Integer value2) {
            addCriterion("idProveedor between", value1, value2, "idProveedor");
            return (Criteria) this;
        }

        public Criteria andIdProveedorNotBetween(Integer value1, Integer value2) {
            addCriterion("idProveedor not between", value1, value2, "idProveedor");
            return (Criteria) this;
        }

        public Criteria andFormaPagoIsNull() {
            addCriterion("formaPago is null");
            return (Criteria) this;
        }

        public Criteria andFormaPagoIsNotNull() {
            addCriterion("formaPago is not null");
            return (Criteria) this;
        }

        public Criteria andFormaPagoEqualTo(Integer value) {
            addCriterion("formaPago =", value, "formaPago");
            return (Criteria) this;
        }

        public Criteria andFormaPagoNotEqualTo(Integer value) {
            addCriterion("formaPago <>", value, "formaPago");
            return (Criteria) this;
        }

        public Criteria andFormaPagoGreaterThan(Integer value) {
            addCriterion("formaPago >", value, "formaPago");
            return (Criteria) this;
        }

        public Criteria andFormaPagoGreaterThanOrEqualTo(Integer value) {
            addCriterion("formaPago >=", value, "formaPago");
            return (Criteria) this;
        }

        public Criteria andFormaPagoLessThan(Integer value) {
            addCriterion("formaPago <", value, "formaPago");
            return (Criteria) this;
        }

        public Criteria andFormaPagoLessThanOrEqualTo(Integer value) {
            addCriterion("formaPago <=", value, "formaPago");
            return (Criteria) this;
        }

        public Criteria andFormaPagoIn(List<Integer> values) {
            addCriterion("formaPago in", values, "formaPago");
            return (Criteria) this;
        }

        public Criteria andFormaPagoNotIn(List<Integer> values) {
            addCriterion("formaPago not in", values, "formaPago");
            return (Criteria) this;
        }

        public Criteria andFormaPagoBetween(Integer value1, Integer value2) {
            addCriterion("formaPago between", value1, value2, "formaPago");
            return (Criteria) this;
        }

        public Criteria andFormaPagoNotBetween(Integer value1, Integer value2) {
            addCriterion("formaPago not between", value1, value2, "formaPago");
            return (Criteria) this;
        }

        public Criteria andTiempoEntregaIsNull() {
            addCriterion("tiempoEntrega is null");
            return (Criteria) this;
        }

        public Criteria andTiempoEntregaIsNotNull() {
            addCriterion("tiempoEntrega is not null");
            return (Criteria) this;
        }

        public Criteria andTiempoEntregaEqualTo(Integer value) {
            addCriterion("tiempoEntrega =", value, "tiempoEntrega");
            return (Criteria) this;
        }

        public Criteria andTiempoEntregaNotEqualTo(Integer value) {
            addCriterion("tiempoEntrega <>", value, "tiempoEntrega");
            return (Criteria) this;
        }

        public Criteria andTiempoEntregaGreaterThan(Integer value) {
            addCriterion("tiempoEntrega >", value, "tiempoEntrega");
            return (Criteria) this;
        }

        public Criteria andTiempoEntregaGreaterThanOrEqualTo(Integer value) {
            addCriterion("tiempoEntrega >=", value, "tiempoEntrega");
            return (Criteria) this;
        }

        public Criteria andTiempoEntregaLessThan(Integer value) {
            addCriterion("tiempoEntrega <", value, "tiempoEntrega");
            return (Criteria) this;
        }

        public Criteria andTiempoEntregaLessThanOrEqualTo(Integer value) {
            addCriterion("tiempoEntrega <=", value, "tiempoEntrega");
            return (Criteria) this;
        }

        public Criteria andTiempoEntregaIn(List<Integer> values) {
            addCriterion("tiempoEntrega in", values, "tiempoEntrega");
            return (Criteria) this;
        }

        public Criteria andTiempoEntregaNotIn(List<Integer> values) {
            addCriterion("tiempoEntrega not in", values, "tiempoEntrega");
            return (Criteria) this;
        }

        public Criteria andTiempoEntregaBetween(Integer value1, Integer value2) {
            addCriterion("tiempoEntrega between", value1, value2, "tiempoEntrega");
            return (Criteria) this;
        }

        public Criteria andTiempoEntregaNotBetween(Integer value1, Integer value2) {
            addCriterion("tiempoEntrega not between", value1, value2, "tiempoEntrega");
            return (Criteria) this;
        }

        public Criteria andFechaGeneracionIsNull() {
            addCriterion("fechaGeneracion is null");
            return (Criteria) this;
        }

        public Criteria andFechaGeneracionIsNotNull() {
            addCriterion("fechaGeneracion is not null");
            return (Criteria) this;
        }

        public Criteria andFechaGeneracionEqualTo(Date value) {
            addCriterion("fechaGeneracion =", value, "fechaGeneracion");
            return (Criteria) this;
        }

        public Criteria andFechaGeneracionNotEqualTo(Date value) {
            addCriterion("fechaGeneracion <>", value, "fechaGeneracion");
            return (Criteria) this;
        }

        public Criteria andFechaGeneracionGreaterThan(Date value) {
            addCriterion("fechaGeneracion >", value, "fechaGeneracion");
            return (Criteria) this;
        }

        public Criteria andFechaGeneracionGreaterThanOrEqualTo(Date value) {
            addCriterion("fechaGeneracion >=", value, "fechaGeneracion");
            return (Criteria) this;
        }

        public Criteria andFechaGeneracionLessThan(Date value) {
            addCriterion("fechaGeneracion <", value, "fechaGeneracion");
            return (Criteria) this;
        }

        public Criteria andFechaGeneracionLessThanOrEqualTo(Date value) {
            addCriterion("fechaGeneracion <=", value, "fechaGeneracion");
            return (Criteria) this;
        }

        public Criteria andFechaGeneracionIn(List<Date> values) {
            addCriterion("fechaGeneracion in", values, "fechaGeneracion");
            return (Criteria) this;
        }

        public Criteria andFechaGeneracionNotIn(List<Date> values) {
            addCriterion("fechaGeneracion not in", values, "fechaGeneracion");
            return (Criteria) this;
        }

        public Criteria andFechaGeneracionBetween(Date value1, Date value2) {
            addCriterion("fechaGeneracion between", value1, value2, "fechaGeneracion");
            return (Criteria) this;
        }

        public Criteria andFechaGeneracionNotBetween(Date value1, Date value2) {
            addCriterion("fechaGeneracion not between", value1, value2, "fechaGeneracion");
            return (Criteria) this;
        }

        public Criteria andIdGeneradorIsNull() {
            addCriterion("idGenerador is null");
            return (Criteria) this;
        }

        public Criteria andIdGeneradorIsNotNull() {
            addCriterion("idGenerador is not null");
            return (Criteria) this;
        }

        public Criteria andIdGeneradorEqualTo(Integer value) {
            addCriterion("idGenerador =", value, "idGenerador");
            return (Criteria) this;
        }

        public Criteria andIdGeneradorNotEqualTo(Integer value) {
            addCriterion("idGenerador <>", value, "idGenerador");
            return (Criteria) this;
        }

        public Criteria andIdGeneradorGreaterThan(Integer value) {
            addCriterion("idGenerador >", value, "idGenerador");
            return (Criteria) this;
        }

        public Criteria andIdGeneradorGreaterThanOrEqualTo(Integer value) {
            addCriterion("idGenerador >=", value, "idGenerador");
            return (Criteria) this;
        }

        public Criteria andIdGeneradorLessThan(Integer value) {
            addCriterion("idGenerador <", value, "idGenerador");
            return (Criteria) this;
        }

        public Criteria andIdGeneradorLessThanOrEqualTo(Integer value) {
            addCriterion("idGenerador <=", value, "idGenerador");
            return (Criteria) this;
        }

        public Criteria andIdGeneradorIn(List<Integer> values) {
            addCriterion("idGenerador in", values, "idGenerador");
            return (Criteria) this;
        }

        public Criteria andIdGeneradorNotIn(List<Integer> values) {
            addCriterion("idGenerador not in", values, "idGenerador");
            return (Criteria) this;
        }

        public Criteria andIdGeneradorBetween(Integer value1, Integer value2) {
            addCriterion("idGenerador between", value1, value2, "idGenerador");
            return (Criteria) this;
        }

        public Criteria andIdGeneradorNotBetween(Integer value1, Integer value2) {
            addCriterion("idGenerador not between", value1, value2, "idGenerador");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}